package com.lr.mapper;

import com.lr.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface DWMapper {
    public User getUserByName(String userName);
    public Integer addUser(User user);
    public Integer addCompany(Integer userId);
    public Company getCompanyByUserId(Integer userId);
    public Integer upLogTime(Integer id);
    public String getPasswordById(Integer id);
    public Integer updateCompany(Company company);
    public List<Resume> searchResume(Resume resume);
    public Resume getResumeById(Integer resumeId);
    public Integer n_browseNumAdd();
    public List<Resume> getRecruitByCompanyId(Integer companyId);
    public Integer addRecruit(Recruit recruit);
    public Integer updateRecruitStatus(@Param("id") Integer id, @Param("status") Integer status);
    public Integer delRecruitById(Integer id);
    public Recruit getRecruitById(Integer id);
    public Integer upRecruitById(Recruit recruit);
    public List<Recruit> getRecruitByUserId(Integer UserId);
    public Integer getTdrsById(Integer id);
    public List<Resume> getResumeByRecruitId(Integer recruitId);
    public List<JobFair> getJobFair(Integer companyId);
    public Integer addJobFair(JobFair jobFair);
    public Integer updateJobFairStatus(@Param("id") Integer id, @Param("status") Integer status);
    public JobFair getJobFairById(Integer id);
    public Integer upJobFair(JobFair jobFair);
    public Integer delJobFair(Integer id);
    public Integer upRecruStatusByComId(Integer companyId);
    public Integer upJobFairStatusByComId(Integer companyId);
    public Integer getSHZTById(Integer id);
}
